cmake_minimum_required(VERSION 3.5.0)
project(Tests VERSION 0.1.0 LANGUAGES C CXX)

if(LINUX)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()

add_executable(RWLockTest rw_lock_test.cpp)
add_executable(RingQueueTest ring_queue_test.cpp)
add_executable(ObjectPoolTest object_pool_test.cpp)
add_executable(ThreadFuncTest thread_func_test.cpp)
add_executable(SemaphoreTest semaphore_test.cpp)
add_executable(TimerTest timer_test.cpp)
add_executable(ThreadPoolTest thread_pool_test.cpp)
add_executable(JsonHelperTest json_helper_test.cpp)
add_executable(StrMatchTest str_match_test.cpp)
add_executable(AnyTypeTest any_type_test.cpp)
add_executable(MacroDefineTest macro_define_test.cpp)
add_executable(StaticReflectTest static_reflect_test.cpp)
add_executable(SignalTest signal_test.cpp)
